﻿<!DOCTYPE html>
<html lang="en">
<head>
<title>{$copyright}-赛车俱乐部</title>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="HandheldFriendly" content="True">
<meta name="apple-touch-fullscreen" content="yes" />
<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.01, minimal-ui" />
<base href="{$mistanurl}">
<style>
		body {
			margin: 0px;
			padding: 0px;
			width: 100%;
			background-color:black;
		}	

		canvas {	
			-ms-touch-action: none;
			image-rendering: -o-crisp-edges;           
			image-rendering: optimize-contrast;        
			-ms-interpolation-mode: nearest-neighbor;  
			-webkit-tap-highlight-color: rgba(0,0,0,0);
			-moz-tap-highlight-color: rgba(0,0,0,0);
			tap-highlight-color: rgba(0,0,0,0);
			user-select: none;
			-webkit-touch-callout: none;
			-webkit-user-select: none;
			-moz-user-select: none;
			-ms-user-select: none;
		} 
	</style>
<script src="viewporter.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id="viewporter">
<canvas id="canvas" moz-opaque></canvas>
</div>
<?php

$wx = $_W['account']['jssdkconfig'];

$wx['url'] ='http://'.$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ;

?> 

<script>

    var appIdstr = "{$wx['appId']}";

    var timestampstr = "{$wx['timestamp']}";

    var nonceStrstr = "{$wx['nonceStr']}";

    var signaturestr = "{$wx['signature']}";

wx.config({

	debug: false,

	appId: appIdstr,

	timestamp: timestampstr,

	nonceStr: nonceStrstr,

	signature: signaturestr,

	jsApiList: [

		'checkJsApi',

		'onMenuShareTimeline',

		'onMenuShareAppMessage'

	]

});

wx.ready(function () {
//分享给朋友  
  wx.onMenuShareAppMessage({
      title: '赛车俱乐部',
      desc: '{$copyright}',
      link:'' ,
      imgUrl:"{$img}",
      type:'', // 分享类型,music、video或link，不填默认为link 分享给朋友
      dataUrl:'', // 如果type是music或video，分享给朋友
	  	success: function (res) {
      },
      cancel: function (res) {
      }
  });
  //分享到朋友圈
    wx.onMenuShareTimeline({
      title:'赛车俱乐部-{$copyright}',
      link:'' ,
      imgUrl:"{$img}",
      type:'', // 分享类型,music、video或link，不填默认为link 分享给朋友
      dataUrl:'', // 如果type是music或video，分享给朋友
	  	success: function (res) {
      },
      cancel: function (res) {
      }
	});

});
</script>
</body>
<script src="TweenMax.min.js"></script>
<script src="howler.js"></script>
<script src="app.js"></script>
</html>